package pri.zxx.testdemo;

/**
 * @author xigua
 * @desc
 * @createTime 2022-03-19-上午11:42
 */
public class StringTest {

    public static void main(String[] args) {
        String a = "a";
        String b = "b";
        String s1 = a+b;
        String s2 = "a"+"b";
        String s3 = "ab";
        System.out.println(s1==s2);
        System.out.println(s3==s2);
        System.out.println(s3==s1);
    }
}
